//
//  LoadDelegateCom.m
//  Jyxt
//
//  Created by 刘日 on 17/5/19.
//  Copyright © 2017年 DaLian Rental Housing Management. All rights reserved.
//

#import "LoadDelegateCom.h"

@implementation LoadDelegateCom

- (void)stopLoad:(NSDictionary *)data{
    if ([data[@"type"] isEqualToString: @"header"]) {
        [self.mixView.operate stopDropRefresh];
    }
    else if([data[@"type"] isEqualToString: @"footer"]){
        [self.mixView.operate stopPullUpLoading];
    }
}

- (void)setLoadViewState: (NSDictionary *)data{
    if ([data[@"type"] isEqualToString: @"header"]) {
        self.mixView.operate.enableDropRefresh = [data[@"enabled"] boolValue];
    }
    else if([data[@"type"] isEqualToString: @"footer"]){
        self.mixView.operate.enablePullUpLoading = [data[@"enabled"] boolValue];
    }
}

@end
